package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.DistributionOrderPartner;
import com.addplus.townmall.server.api.model.town.DistributionOrderPersonal;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 分销订单合伙人佣金表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Deprecated
public interface DistributionOrderPartnerMapper extends BaseAddMapper<DistributionOrderPartner> {

    @Select("select * from distribution_order_partner a where a.order_id=#{orderId} and a.order_item_id =#{orderItemsId} and order_type = #{orderType} and a.brokerage_status=0;")
    DistributionOrderPartner getDistribution(@Param("orderId") Integer orderId, @Param("orderType") Integer orderType, @Param("orderItemsId") Integer orderItemsId);

}
